//
//  NSKeyedUnarchiver+ConvertNSData.m
//  NSSecureCodingDemoo
//
//  Created by hpkj on 2020/1/19.
//

#import "NSKeyedUnarchiver+ConvertNSData.h"



@implementation NSKeyedUnarchiver (ConvertNSData)
+(id<NSSecureCoding>)customInstanceFromData:(NSData *)data ForClass:(Class)classType
{
    NSError * error = nil;
     return  [NSKeyedUnarchiver unarchivedObjectOfClass:[classType class] fromData:data error:&error];
}

@end
